package com.warthur.spring.shiro.service.impl;

import com.warthur.spring.shiro.dao.UserDAO;
import com.warthur.spring.shiro.pojo.User;
import com.warthur.spring.shiro.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author warthur
 * @date 2018/09/08
 */
@Service
@Slf4j
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDAO userDAO;

    @Override
    public User getUserByName(String name) {
        return userDAO.findUserByName(name);
    }
}
